package wlf.controller;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import wlf.pojo.Brand;
import wlf.service.BrandService;

@Controller
public class BrandController {
	@Resource
	private BrandService brandServiceImpl;
	
	
	@ResponseBody
	@RequestMapping("/allBrand")
	public List<Brand> allBrand(){
		return brandServiceImpl.allBrand();
	}
}
